#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int a, b, c;
	scanf("%d%d%d", &a, &b, &c);
	if (b > c)
		b = b;
	else if (b < c)
		b = c;
	else if (a > c)
		a = a;
	else if (a < c)
		a = c;
	else if (a > b)
		a = a;
	else if (a < b)
		a = b;

		printf("%d\n%d\n%d", a, b, c);
		return 0;


}